//
//  DeviceInfoModel.m
//  Rail
//
//  Created by hychen on 2018/7/22.
//  Copyright © 2018年 Hychen. All rights reserved.
//

#import "DeviceInfoModel.h"

@implementation DeviceInfoModel

- (UIImage *)image {
    if ([self.typecode isEqualToString:@"GPS"]) {
        return [UIImage imageNamed:@"receive_location_ring_ic"];
    }
    else if ([self.typecode isEqualToString:@"VOIP-A"]) {
        return [UIImage imageNamed:@"receive_ntercom_ic"];
    }
    return [UIImage new];
}

@end
